package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2024-12-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_cost_item")
public class CostItemDo extends Model<CostItemDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("cost_id")
    private Long costId;

    @TableField("item_name")
    private String itemName;

    /**
     * 退件 一件代发入库 出库
     */
    @TableField("bill_type")
    private Integer billType;

    /**
     * 计费明细
     */
    @TableField("call_detail")
    private String callDetail;

    /**
     * 总费用
     */
    @TableField("total_fee")
    private Double totalFee;

//    @TableField("currency_code")
//    private String currencyCode;

    @TableField("tips")
    private String tips;

    @TableField("auto")
    private Integer auto;

    /**
     * 仓储 计算单位 0立方米/天  1立方英尺/天
     */
    @TableField("calculate_unit")
    private Integer calculateUnit;

    /**
     * 仓储计算方式 0 按体积
     */
    @TableField("calculate_way")
    private Integer calculateWay;

    /**
     * 仓储 总体积
     */
    @TableField("total_volume")
    private Double totalVolume;

    /**
     * 仓储 计费体积
     */
    @TableField("cal_volume")
    private Double calVolume;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private Long createBy;

    @TableField("delete_by")
    private Long deleteBy;

    @TableField("delete_time")
    private Date deleteTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
